package com.ruoyi.quartz.task;


import com.ruoyi.quartz.util.SendWxMsgUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 * 
 * @author ruoyi
 */
@Component("ryTask")
public class RyTask{

    private static Log logger = LogFactory.getLog(RyTask.class);

    public void ryParams(String params)
    {
        System.out.println("执行有参方法：" + params);
    }

    public void ryNoParams()
    {
        System.out.println("执行无参方法");
    }


    /* 定时模板推送信息 */
    public void sendWxMsg() {
        String methodName = "sendWxMsg";  // 执行的方法名
        // 群发列表
        SendWxMsgUtil.sendWxMsg_1(methodName);
    }
}
